import React from 'react'
interface Iprops{
  checkAll:boolean,
  setCheckAll:(flag:boolean)=>void
}
export default function Header({checkAll,setCheckAll}:Iprops) {
  return (
    <React.Fragment>
       <div className='tr'>
         <div className="td">
            <div className="checkall">
                <input type='checkbox'
                checked={checkAll}
                onChange={(e)=>{setCheckAll(e.target.checked)}}
                />全选
            </div>
                <div>商品名称</div>
                <div>商品价格</div>
                <div>商品数量</div>
                <div>商品小计</div>
                <div>操作</div>
        </div>
        </div>
    </React.Fragment>
  )
}
